package com.syxp.pda.core.util;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;

public class ArraysBuilder {

	public static List buildList(Collection collection) {
		List list = new ArrayList() ;
		Iterator iter = collection.iterator() ;
		while(iter.hasNext()){
			list.add(iter.next()) ;
		}
		return list ;
	}
	
	public static Set buildSet(Collection collection) {
		Set set = new HashSet() ;
		Iterator iter = collection.iterator() ;
		while(iter.hasNext()){
			set.add(iter.next()) ;
		}
		return set ;
	}
}
